#!/usr/bin/env python3
#coding=utf-8
import tkinter
from tkinter import *
from tkinter import ttk
import requests


class BitSearch:

    def __init__(self):
        pass


class UI: 
    def __init__(self):
        self.App = tkinter.Tk()
        self.App.geometry("500x500+300+200")
        self.main_frame = ttk.Frame(self.App,padding = "200 200 300 300")
        self.main_frame.grid(column = 0,row = 0,sticky = (N,W,E,S))
        self.App.columnconfigure(0,weight = 20)
        self.App.rowconfigure(0,weight = 20)

    def run(self):
        label1 = tkinter.ttk.Label(self.main_frame,text = "开启")
        label1.grid(column = 1,row = 1,sticky = (W,E))
        label2 = tkinter.ttk.Label(self.main_frame,text = "关闭")
        label2.grid(column = 1,row = 2,sticky = (W,E))
        #label2.pack()


        btn1 = tkinter.ttk.Button(self.App,text = "Open")
        #btn1.pack()
        btn1.grid(column = 2,row = 2,sticky = (W,E))
        btn2 = tkinter.ttk.Button(self.App,text = "Close")
        btn2.grid(column = 2,row = 2,sticky = (W,E))
        #btn2.pack()

        self.App.mainloop()


if __name__ == "__main__":
    A = UI()
    A.run()
